/* --------------------------------------------------------
 * Copyright (c) aeky , Inc.  All rights reserved.
 * --------------------------------------------------------
 */
package com.aeky.singleton;

/**
 * 饿汉单例模式，类加载时，就去实例化instance,不会有多线程问题
 * 
 * @author aeky
 */
public class Singleton4Eager {

    private static Singleton4Eager instance = new Singleton4Eager();

    private Singleton4Eager() {

    }

    public static Singleton4Eager getInstance() {
        return instance;
    }

}
